/*
* $Id: DatabaseManager.cpp 144 2010-09-11 07:44:56Z volok-aleksej@yandex.ru $
*
* Copyright 2008-2010 by Volokitin Alexey
* All rights reserved
*
*/
#include "Common/include.h"
#include "DatabaseManager.h"

#include "Common/RefObject.h"
CRefObject<CDatabaseManager> g_DatabaseManager;
IDatabaseManager* IDatabaseManager::GetDatabaseManager(){
	return g_DatabaseManager.GetObject();
}

CDatabaseManager::CDatabaseManager(){
	m_pDatabase = new CDatabase(JOURNAL_DATABASE_NAME);
}
CDatabaseManager::~CDatabaseManager(){
	delete m_pDatabase;
}
IDatabase* CDatabaseManager::OpenDatabase(const std::tstring& strNameDatabase){
	return m_pDatabase;
}
void CDatabaseManager::CloseDatabase(IDatabase* pDatabase){}
void CDatabaseManager::Initialize(){}